import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/hwVehicle/hwvehiclesurveywarn/` + url, ...arg)

/**
 * 年检提醒Api接口管理器
 *
 * @author lizhiwen
 * @date  2024/02/06 15:54
 **/
export default {
	// 获取年检提醒分页
	hwVehicleSurveyWarnPage(data) {
		return request('page', data, 'get')
	},
    // 获取年检提醒列表
    hwVehicleSurveyWarnList(data) {
        return request('list', data, 'get')
    },
	// 提交年检提醒表单 edit为true时为编辑，默认为新增
	hwVehicleSurveyWarnSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除年检提醒
	hwVehicleSurveyWarnDelete(data) {
		return request('delete', data)
	},
	// 获取年检提醒详情
	hwVehicleSurveyWarnDetail(data) {
		return request('detail', data, 'get')
	}}
